<form method="post" key="set-mine" action="/admin/callcenter/resource/save.html" class="layui-form">
	<input type="hidden" name="id" value="${pbxHost.id!''}">
	<div class="row">
		<div class="col-lg-12">
			<div class="ukefu-customer-div setting-wrapper">
				<div class="box default-box">
					<div class="box-header">
						<h3 class="box-title">网络配置</h3>
					</div>
					<div class="box-body ukefu-im-theme">
						<div class="row">
							<div class="col-lg-8">
								<div class="ukefu-webim-prop">
									<div class="ukefu-webim-tl" style="clear:both;">1、语音平台服务器名称<font color="red">（必填项*）</font></div>
									<div class="box-item">
										<div class="row">
											<div class="col-lg-8">
												<p>语音接入服务器名称</p>
												<p style="color:#888888;font-size:13px;margin-top:10px;">FreeSwitch服务器名称</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="text" readonly="readonly" name="name" id="name" value="${pbxHost.name!''}" required="required" lay-verify="required" alue="" autocomplete="off" class="layui-input">
											</div>
										</div>
									</div>
								</div>
								<div class="ukefu-webim-prop">
									<div class="ukefu-webim-tl" style="clear:both;">2、语音平台服务器IP地址 <font color="red">（必填项*）</font></div>
									<div class="box-item">
										<div class="row">
											<div class="col-lg-8">
												<p>语音接入服务的网络地址</p>
												<p style="color:#888888;font-size:13px;margin-top:10px;">FreeSwitch服务器的网络IPv4地址，如果是其他厂商的设备，请填写软电话的接入地址</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="text" readonly="readonly" name="ipaddr" id="ipaddr" value="${pbxHost.ipaddr!''}" required="required" lay-verify="required" alue="" autocomplete="off" class="layui-input">
											</div>
										</div>
									</div>
								</div>
								<div class="ukefu-webim-prop">
									<div class="ukefu-webim-tl" style="clear:both;">3、语音平台服务器主机名称 <font color="red">（必填项*）</font></div>
									<div class="box-item">
										<div class="row">
											<div class="col-lg-8">
												<p>语音接入服务的网络地址</p>
												<p style="color:#888888;font-size:13px;margin-top:10px;">FreeSwitch服务器的网络地址，如果是其他厂商的设备，请填写软电话的接入地址</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="text" readonly="readonly" name="hostname" id="hostname" value="${pbxHost.hostname!''}" required="required" lay-verify="required" alue="" autocomplete="off" class="layui-input">
											</div>
										</div>
									</div>
								</div>
								<div class="ukefu-webim-prop">
									<div class="ukefu-webim-tl" style="clear:both;">4、语音平台服务端口</div>
									<div class="box-item">
										<div class="row">
											<div class="col-lg-8">
												<p>语音接入服务的网络端口</p>
												<p style="color:#888888;font-size:13px;margin-top:10px;">FreeSwitch服务器的网络端口，如果是其他厂商的设备，根据需要填写</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="text" readonly="readonly" name="port" id="port" lay-verify="number" value="${pbxHost.port}" autocomplete="off" class="layui-input">
											</div>
										</div>
									</div>
								</div>
								
								<div class="ukefu-webim-prop">
									<div class="ukefu-webim-tl" style="clear:both;">5、语音平台服务访问密码</div>
									<div class="box-item">
										<div class="row">
											<div class="col-lg-8">
												<p>连接语音服务器的密码</p>
												<p style="color:#888888;font-size:13px;margin-top:10px;">FreeSwitch服务器的网络访问密码，如未修改，无需填写</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="password" readonly="readonly" name="password" id="password" value="" autocomplete="off" class="layui-input">
											</div>
										</div>
									</div>
								</div>
								
								<div class="ukefu-webim-prop">
									<div class="ukefu-webim-tl" style="clear:both;">6、导出录音文件命名规则</div>
									<div class="box-item">
										<div class="row">
											<div class="col-lg-8">
												<p>导出时的文件名命名规则</p>
												<p style="color:#888888;font-size:13px;margin-top:10px;">注意：命名规则只会影响导出时压缩包中的文件名称，不会影响原始文件命名</p>
											</div>
											<div class="col-lg-4">
												<select name="device">
													<option value="">默认文件名</option>
													<option value="phone" <#if pbxHost?? && pbxHost.device?? && pbxHost.device == "phone">selected="selected"</#if>>电话号码（189****0000）</option>
													<option value="extphone" <#if pbxHost?? && pbxHost.device?? && pbxHost.device == "extphone">selected="selected"</#if>>日期+电话号码（yyyyMMdd-HHmmss_189****0000）</option>
													<option value="realphone" <#if pbxHost?? && pbxHost.device?? && pbxHost.device == "realphone">selected="selected"</#if>>原号码（189****0000）</option>
													<option value="extrealphone" <#if pbxHost?? && pbxHost.device?? && pbxHost.device == "extrealphone">selected="selected"</#if>>日期+原号码（yyyyMMdd-HHmmss_189****0000）</option>
												</select>
											</div>
										</div>
									</div>
								</div>
								
								
								<div class="ukefu-webim-prop">
									<div class="ukefu-webim-tl" style="clear:both;">7、恢复录音的文件生成规则</div>
									<div class="box-item">
										<div class="row">
											<div class="col-lg-8">
												<p>恢复录音数据时候的录音文件生成规则</p>
												<p style="color:#888888;font-size:13px;margin-top:10px;">录音恢复的生成规则，请参照录音文件规则</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="text" name="fspath" id="fspath" value="${pbxHost.fspath!''}" autocomplete="off" class="layui-input">
											</div>
										</div>
									</div>
								</div>
								
								<div class="ukefu-webim-prop">
									<div class="ukefu-webim-tl" style="clear:both;">8、FreeSwitch服务器录音文件URL</div>
									<div class="box-item">
										<div class="row">
											<div class="col-lg-8">
												<p>FreeSwitch的录音文件访问URL（远程录音文件需要添加http://或https://）</p>
												<p style="color:#888888;font-size:13px;margin-top:10px;">默认为空，表示从Freeswitch安装路径下读取，填写后从URL读取</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="text" name="recordpath" id="recordpath" value="${pbxHost.recordpath!''}" autocomplete="off" class="layui-input">
											</div>
										</div>
									</div>
								</div>
								
								<div class="ukefu-webim-prop">
									<div class="ukefu-webim-tl" style="clear:both;">9、语音服务分机注册类型</div>
									<div class="box-item">
										<div class="row">
											<div class="col-lg-8">
												<p>语音服务分机注册类型</p>
												<p style="color:#888888;font-size:13px;margin-top:10px;">SIP话机注册在FreeSwitch上的类型</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<select name="ivrpath">
													<option value="internal" <#if !(pbxHost?? && pbxHost.ivrpath?? && pbxHost.ivrpath == "external")>selected="selected"</#if>>internal</option>
													<option value="external" <#if pbxHost?? && pbxHost.ivrpath?? && pbxHost.ivrpath == "external">selected="selected"</#if>>external</option>
												</select>
											</div>
										</div>
									</div>
								</div>
								
								<div class="ukefu-webim-prop">
									<div class="ukefu-webim-tl" style="clear:both;">10、启用话机端自动应答（Call Info）</div>
									<div class="box-item">
										<div class="row">
											<div class="col-lg-8">
												<p>启用此功能后，回拨的时候，坐席话机会启用自动应答功能</p>
												<p style="color:#888888;font-size:13px;margin-top:10px;">需要SIP话机支持此功能</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="checkbox" title="启用" name="autoanswer" id="autoanswer" <#if pbxHost?? && pbxHost.autoanswer>checked="checked"</#if>>
											</div>
										</div>
									</div>
								</div>
								
								<div class="ukefu-webim-prop">
									<div class="ukefu-webim-tl" style="clear:both;">11、启用话机端自动应答（SIP Auto Answer ）</div>
									<div class="box-item">
										<div class="row">
											<div class="col-lg-8">
												<p>启用此功能后，回拨的时候，坐席话机会启用自动应答功能</p>
												<p style="color:#888888;font-size:13px;margin-top:10px;">需要SIP话机支持此功能</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="checkbox" title="启用" name="sipautoanswer" id="sipautoanswer" <#if pbxHost?? && pbxHost.sipautoanswer>checked="checked"</#if>>
											</div>
										</div>
									</div>
								</div>
								
								<div class="ukefu-webim-prop">
									<div class="ukefu-webim-tl" style="clear:both;">12、启用呼叫中心功能模块</div>
									<div class="box-item">
										<div class="row">
											<div class="col-lg-8">
												<p>启用此功能后，呼叫中心相关功能启用</p>
												<p style="color:#888888;font-size:13px;margin-top:10px;">需要预先配置Freeswitch呼叫中心功能模块</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="checkbox" title="启用" name="callcenter" id="callcenter" <#if pbxHost?? && pbxHost.callcenter>checked="checked"</#if>>
											</div>
										</div>
									</div>
								</div>
								
								<div class="ukefu-webim-prop">
									<div class="ukefu-webim-tl" style="clear:both;">13、坐席通话结束后变更状态到后处理</div>
									<div class="box-item">
										<div class="row">
											<div class="col-lg-8">
												<p>启用此功能后，坐席在呼叫中心队列中通话结束后自动进入后处理状态</p>
												<p style="color:#888888;font-size:13px;margin-top:10px;">需要预先配置Freeswitch呼叫中心功能模块</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="checkbox" title="启用" name="afterprocess" id="afterprocess" <#if pbxHost?? && pbxHost.afterprocess>checked="checked"</#if>>
											</div>
										</div>
									</div>
								</div>
								
								<div class="ukefu-webim-prop">
									<div class="ukefu-webim-tl" style="clear:both;">14、坐席通话结束后变更状态到就绪</div>
									<div class="box-item">
										<div class="row">
											<div class="col-lg-8">
												<p>启用此功能后，坐席在呼叫中心队列中通话结束后自动进入就绪状态</p>
												<p style="color:#888888;font-size:13px;margin-top:10px;">需要预先配置Freeswitch呼叫中心功能模块</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="checkbox" title="启用" name="autoready" id="autoready" <#if pbxHost?? && pbxHost.autoready>checked="checked"</#if>>
											</div>
										</div>
									</div>
								</div>
								
								
								<div class="ukefu-webim-prop">
									<div class="ukefu-webim-tl" style="clear:both;">15、坐席登录后进入就绪</div>
									<div class="box-item">
										<div class="row">
											<div class="col-lg-8">
												<p>启用此功能后，坐席在登录软电话时自动进入就绪状态</p>
												<p style="color:#888888;font-size:13px;margin-top:10px;">需要预先配置Freeswitch呼叫中心功能模块</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="checkbox" title="启用" name="loginready" id="loginready" <#if pbxHost?? && pbxHost.loginready>checked="checked"</#if>>
											</div>
										</div>
									</div>
								</div>
								
								<div class="ukefu-webim-prop">
									<div class="ukefu-webim-tl" style="clear:both;">16、坐席登出后保持就绪</div>
									<div class="box-item">
										<div class="row">
											<div class="col-lg-8">
												<p>启用此功能后，坐席在退出软电话后保持就绪状态</p>
												<p style="color:#888888;font-size:13px;margin-top:10px;">需要预先配置Freeswitch呼叫中心功能模块</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="checkbox" title="启用" name="logoutready" id="logoutready" <#if pbxHost?? && pbxHost.logoutready>checked="checked"</#if>>
											</div>
										</div>
									</div>
								</div>
								
								<div class="ukefu-webim-prop">
									<div class="ukefu-webim-tl" style="clear:both;">17、发起呼叫的默认编码</div>
									<div class="box-item">
										<div class="row">
											<div class="col-lg-8">
												<p>发起呼叫的请求参数</p>
												<p style="color:#888888;font-size:13px;margin-top:10px;">FreeSwitch配置选项，通过软电话条发起呼叫是使用</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="text" name="abscodec" id="abscodec" value="${pbxHost.abscodec!''}" autocomplete="off" class="layui-input">
											</div>
										</div>
									</div>
								</div>
								<div class="ukefu-webim-prop">
									<div class="ukefu-webim-tl" style="clear:both;">18、启用WebRTC</div>
									<div class="box-item">
										<div class="row">
											<div class="col-lg-8">
												<p>启用此功能后，可以使用网页上的WebRTC功能拨打和接听电话</p>
												<p style="color:#888888;font-size:13px;margin-top:10px;">WebRTC功能支持网页端接听和拨打电话，无需SIP话机</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="checkbox" title="启用" name="enablewebrtc" id="enablewebrtc" lay-filter="webrtc" <#if pbxHost?? && pbxHost.enablewebrtc == true>checked="checked"</#if>>
											</div>
										</div>
									</div>
									<div class="box-item" id="webrtc" style="<#if pbxHost?? && pbxHost.enablewebrtc == false>display:none;</#if>">	
										<div class="row">
											<div class="col-lg-8">
												<p>WebRTC访问地址</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="text" name="webrtcaddress" id="webrtcaddress" value="${pbxHost.webrtcaddress!''}" autocomplete="off" class="layui-input">
											</div>
										</div>
										<div class="row" style="margin-top:20px;">
											<div class="col-lg-8">
												<p>访问端口</p>
											</div>
											<div class="col-lg-4">
												<input type="text" name="webrtcport" id="webrtcport" lay-verify="port" value="${pbxHost.webrtcport!''}" autocomplete="off" class="layui-input">
											</div>
										</div>
										
										<div class="row" style="margin-top:20px;">
											<div class="col-lg-8">
												<p>SIP服务端口</p>
											</div>
											<div class="col-lg-4">
												<input type="text" name="sipport" id="sipport" lay-verify="port" value="${pbxHost.sipport!''}" autocomplete="off" class="layui-input">
											</div>
										</div>
										
										<div class="row" style="margin-top:20px;">
											<div class="col-lg-8">
												<p>WebRTC启用SSL</p>
											</div>
											<div class="col-lg-4">
												
												<input type="checkbox" title="启用" name="webrtcssl" id="webrtcssl" <#if pbxHost?? && pbxHost.webrtcssl == true>checked="checked"</#if>>
											</div>
										</div>
										
										<div class="row" style="margin-top:20px;">
											<div class="col-lg-8">
												<p>呼入来电铃声</p>
											</div>
											<div class="col-lg-4">
												<select name="webrtcring">
								                	<option values="">请选择播报录音</option>
								                	<#if mediaList??>
								                	<#list mediaList as media>
								                	<option value="${media.filename!''}" <#if pbxHost.webrtcring?? && pbxHost.webrtcring == media.filename>selected="selected"</#if>>${media.name!''}</option>
								                	</#list>
								                	</#if>
								                </select>
											</div>
										</div>
										
										<div class="row" style="margin-top:20px;">
											<div class="col-lg-8">
												<p>名单预览铃声</p>
											</div>
											<div class="col-lg-4">
												<select name="previewring">
								                	<option values="">请选择播报录音</option>
								                	<#if mediaList??>
								                	<#list mediaList as media>
								                	<option value="${media.filename!''}" <#if pbxHost.previewring?? && pbxHost.previewring == media.filename>selected="selected"</#if>>${media.name!''}</option>
								                	</#list>
								                	</#if>
								                </select>
											</div>
										</div>
									</div>
								</div>
								<div class="ukefu-webim-prop">
									<div class="ukefu-webim-tl" style="clear:both;">19、外呼时在SIP客户端隐藏外呼号码</div>
									<div class="box-item">
										<div class="row">
											<div class="col-lg-8">
												<p>启用此功能后，外呼的SIP客户端（包括SIP话机）上隐藏外呼号码</p>
												<p style="color:#888888;font-size:13px;margin-top:10px;">需要启用电销组件，并且需要在电销组件的元数据里开启字段隐藏号码功能</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="checkbox" title="启用" name="dissipphone" id="dissipphone" <#if pbxHost?? && pbxHost.dissipphone>checked="checked"</#if>>
											</div>
										</div>
									</div>
								</div>
								
								
								<div class="ukefu-webim-prop">
									<div class="ukefu-webim-tl" style="clear:both;">20、启用呼叫请求拦截</div>
									<div class="box-item">
										<div class="row">
											<div class="col-lg-8">
												<p>启用此功能后，系统会根据设置的拦截规则对通话进行拦截</p>
												<p style="color:#888888;font-size:13px;margin-top:10px;">拦截支持多种规则组合</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="checkbox" title="启用" name="enableacl" id="enableacl" lay-filter="acl" <#if pbxHost?? && pbxHost.enableacl == true>checked="checked"</#if>>
											</div>
										</div>
									</div>
									<div class="box-item" id="acl" style="<#if pbxHost?? && pbxHost.enableacl == false>display:none;</#if>">	
										<div class="row">
											<div class="col-lg-8">
												a、请求黑名单自动过滤条件
												<p style="color:#888888;font-size:13px;">在呼入或呼出字符串中包含设置的关键词的呼叫请求将会被拦截</p>
												<p style="color:#888888;font-size:13px;">请求字符串拦截的条件，多个关键词以逗号或者 | 隔开</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="text" name="blacklist" id="blacklist" value="${pbxHost.blacklist!''}" autocomplete="off" class="layui-input">
											</div>
										</div>
										<div class="row" style="margin-top:20px;">
											<div class="col-lg-8">
												b、请求头必须包含字段信息
												<p style="color:#888888;font-size:13px;">在呼入或呼出字符串中必须包含设置的关键词，否则，呼叫会被拦截</p>
												<p style="color:#888888;font-size:13px;">请求字符串必须包含的条件，多个关键词以逗号或者 | 隔开</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="text" name="whitelist" id="whitelist" value="${pbxHost.whitelist!''}" autocomplete="off" class="layui-input">
											</div>
										</div>
										
										<div class="row" style="margin-top:20px;">
											<div class="col-lg-8">
												c、 允许呼叫的号码最小长度
												<p style="color:#888888;font-size:13px;">在呼入或呼出的号码的最小长度</p>
												<p style="color:#888888;font-size:13px;">号码（主叫/被叫）长度低于最小长度的呼叫将会被拦截</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="text" name="minnumlength" id="minnumlength" maxlength="2" lay-verify="number"  value="${pbxHost.minnumlength!''}" autocomplete="off" class="layui-input">
											</div>
										</div>
										<div class="row" style="margin-top:20px;">
											<div class="col-lg-8">
												d、 允许呼叫的号码最大长度
												<p style="color:#888888;font-size:13px;">在呼入或呼出的号码的最大长度</p>
												<p style="color:#888888;font-size:13px;">号码（主叫/被叫）长度大于最大长度的呼叫将会被拦截</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="text" name="maxnumlength" id="maxnumlength" maxlength="2" lay-verify="number" value="${pbxHost.maxnumlength!''}" autocomplete="off" class="layui-input">
											</div>
										</div>
										<div class="row" style="margin-top:20px;">
											<div class="col-lg-8">
												e、 来源IP黑名单地区
												<p style="color:#888888;font-size:13px;">发起呼叫的客户端IP地址地区黑名单</p>
												<p style="color:#888888;font-size:13px;">包含在黑名单中的IP将被拦截</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="text" name="ipregionblack" id="ipregionblack" maxlength="255" value="${pbxHost.ipregionblack!''}" autocomplete="off" class="layui-input">
											</div>
										</div>
										
										<div class="row" style="margin-top:20px;">
											<div class="col-lg-8">
												f、 来源IP白名单地区
												<p style="color:#888888;font-size:13px;">发起呼叫的客户端IP地址地区白名单</p>
												<p style="color:#888888;font-size:13px;">包含在白名单中的IP允许发起呼叫</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="text" name="ipregionwhite" id="ipregionwhite" maxlength="255" value="${pbxHost.ipregionwhite!''}" autocomplete="off" class="layui-input">
											</div>
										</div>
										<div class="row" style="margin-top:20px;">
											<div class="col-lg-8">
												g、 保存拦截的呼叫请求记录
												<p style="color:#888888;font-size:13px;">保存黑名单拦截或白名单验证未通过的呼叫请求到数据库</p>
												<p style="color:#888888;font-size:13px;">包括非法呼叫请求和不符合条件的呼叫请求</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="checkbox" title="启用" name="savekillevent" id="savekillevent" <#if pbxHost?? && pbxHost.savekillevent>checked="checked"</#if>>
											</div>
										</div>
									</div>
								</div>
								
								<div class="ukefu-webim-prop">
									<div class="ukefu-webim-tl" style="clear:both;">21、启用通话记录主叫/被叫字符串替换</div>
									<div class="box-item">
										<div class="row">
											<div class="col-lg-8">
												<p>启用此功能后，通话的主叫被叫信息将会根据设定的替换规则对字符串进行替换</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="checkbox" title="启用" name="enablereplace" id="enablereplace" lay-filter="replacereg" <#if pbxHost?? && pbxHost.enablereplace == true>checked="checked"</#if>>
											</div>
										</div>
									</div>
									<div class="box-item" id="replacereg" style="<#if pbxHost?? && pbxHost.enablereplace == false>display:none;</#if>">	
										<div class="row">
											<div class="col-lg-8">
												<p>匹配字符串</p>
												<p style="color:#888888;font-size:13px;">同时对主叫和被叫字符串信息进行匹配，多个规则以|隔开</p>
											</div>
											<div class="col-lg-4" style="text-align:left;">
												<input type="text" name="replacereg" placeholder="最长不超过100个字符" maxlength="100" id="replacereg" value="${pbxHost.replacereg!''}" autocomplete="off" class="layui-input">
											</div>
										</div>
										<div class="row" style="margin-top:20px;">
											<div class="col-lg-8">
												<p>替换成</p>
												<p style="color:#888888;font-size:13px;">同时对主叫和被叫字符串信息进行替换，多个规则以|隔开</p>
											</div>
											<div class="col-lg-4">
												<input type="text" name="replacestr" placeholder="最长不超过100个字符" maxlength="100" id="replacestr" value="${pbxHost.replacestr!''}" autocomplete="off" class="layui-input">
											</div>
										</div>
									</div>
								</div>
								
								<div class="ukefu-webim-prop">
									<div class="ukefu-webim-tl" style="clear:both;">22、启用挂断转满意度调查</div>
									<div class="box-item">
										<div class="row">
											<div class="col-lg-8">
												<p>启用后自动转满意度调查</p>
												<p style="color:#888888;font-size:13px;margin-top:10px;">座席端挂断电话后，客户电话自动转接到满意度调查</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="checkbox" title="启用" name="orgtrans" id="orgtrans" lay-filter="orgtrans" <#if pbxHost?? && pbxHost.orgtrans>checked="checked"</#if>>
											</div>
										</div>
									</div>
									<div class="box-item" id="orgtrans_tip" style="<#if pbxHost?? && pbxHost.orgtrans == false>display:none;</#if>">	
										<div class="row">
											<div class="col-lg-8">
												<p>转接满意度号码</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="text" name="orgtransdest" id="orgtransdest" value="${pbxHost.orgtransdest!''}" autocomplete="off" class="layui-input">
											</div>
										</div>
										
										<div class="row">
											<div class="col-lg-8">
												<p>转接的呼叫类型</p>
											</div>
										</div>
										<div class="row">
											<div class="col-lg-12" style="margin-top:10px;">
												<input type="checkbox" name="orgtranstype" value="orgcallout" <#if pbxHost?? && pbxHost.orgtranstype?? && pbxHost.orgtranstype?index_of('orgcallout') gte 0>checked="checked"</#if> title="外线呼出（orgcallout）" lay-skin="primary"> 
												<input type="checkbox" name="orgtranstype" value="outsidequene" <#if pbxHost?? && pbxHost.orgtranstype?? && pbxHost.orgtranstype?index_of('outsidequene') gte 0>checked="checked"</#if> title="外线转队列（outsidequene）" lay-skin="primary">
												<input type="checkbox" name="orgtranstype" value="outsidetrans" <#if pbxHost?? && pbxHost.orgtranstype?? && pbxHost.orgtranstype?index_of('outsidetrans') gte 0>checked="checked"</#if> title="外线转接（outsidetrans）" lay-skin="primary"> 
												<input type="checkbox" name="orgtranstype" value="orgcallin" <#if pbxHost?? && pbxHost.orgtranstype?? && pbxHost.orgtranstype?index_of('orgcallin') gte 0>checked="checked"</#if> title="外线呼入（orgcallin）" lay-skin="primary">
												<input type="checkbox" name="orgtranstype" value="outquenetrans" <#if pbxHost?? && pbxHost.orgtranstype?? && pbxHost.orgtranstype?index_of('outquenetrans') gte 0>checked="checked"</#if> title="队列转接（outquenetrans）" lay-skin="primary">
											</div>
										</div>
									</div>
								</div>
								
								<div class="ukefu-webim-prop">
									<div class="ukefu-webim-tl" style="clear:both;">23、启用呼叫中心会议功能</div>
									<div class="box-item">
										<div class="row">
											<div class="col-lg-8">
												<p>启用后开启多方通话功能</p>
												<p style="color:#888888;font-size:13px;margin-top:10px;">多方通话开启前需要配置会议路由规则</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="checkbox" title="启用" name="conference" id="conference" lay-filter="conference" <#if pbxHost?? && pbxHost.conference>checked="checked"</#if>>
											</div>
										</div>
									</div>
									<div class="box-item" id="conference_tip" style="<#if pbxHost?? && pbxHost.conference == false>display:none;</#if>">	
										<div class="row">
											<div class="col-lg-8">
												<p>会议默认接入号码</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="text" name="conferencenum" id="conferencenum" value="${pbxHost.conferencenum!''}" autocomplete="off" class="layui-input">
											</div>
										</div>
										
										<div class="row" style="padding-top:20px;">
											<div class="col-lg-8">
												<p>会议创建人离开后关闭会议</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="checkbox" title="启用" name="initleave" <#if pbxHost?? && pbxHost.initleave>checked="checked"</#if>>
											</div>
										</div>
									</div>
								</div>
								
								<div class="ukefu-webim-prop">
									<div class="ukefu-webim-tl" style="clear:both;">24、链接时初始化呼叫中心队列信息</div>
									<div class="box-item">
										<div class="row">
											<div class="col-lg-8">
												<p>和语音交换系统建立链接的时候，同时初始化呼叫中心队列信息</p>
												<p style="color:#888888;font-size:13px;margin-top:10px;color:red;">注意：初始化呼叫中心队列会影响当前已登录坐席状态</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="checkbox" title="启用" name="enablesync" id="enablesync" <#if pbxHost?? && pbxHost.enablesync>checked="checked"</#if>>
											</div>
										</div>
									</div>
								</div>
								
								<div class="ukefu-webim-prop">
									<div class="ukefu-webim-tl" style="clear:both;">25、链接时初始化网关信息</div>
									<div class="box-item">
										<div class="row">
											<div class="col-lg-8">
												<p>和语音交换系统建立链接的时候，同时初始化对接网关信息</p>
												<p style="color:#888888;font-size:13px;margin-top:10px;color:red;">注意：初始化对接网关会影响当前通话</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="checkbox" title="启用" name="enablesyncgw" id="enablesyncgw" <#if pbxHost?? && pbxHost.enablesyncgw>checked="checked"</#if>>
											</div>
										</div>
									</div>
								</div>
								
								<div class="ukefu-webim-prop">
									<div class="ukefu-webim-tl" style="clear:both;">26、启用性别年龄识别功能(Igr)</div>
									<div class="box-item">
										<div class="row">
											<div class="col-lg-8">
												<p>启用性别年龄识别功能，语音识别人声的性别和年龄</p>
											</div>
											<div class="col-lg-4" style="text-align:right;position: relative;">
												<input type="checkbox" title="启用" name="igr" lay-filter="igr" value="1" <#if pbxHost.igr>checked="checked"</#if>>
											</div>
										</div>
										
										<div class="row igr" style="margin-top:30px;margin-bottom:20px;  <#if pbxHost?? && pbxHost.igr == false>display: none;</#if>" >
											<div class="col-lg-8">
												<p>选择性别年龄识别引擎</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<div class="layui-input-block">
												     <select name="igrtype">
												     	<option value="xfigr" <#if pbxHost?? && pbxHost.igrtype?? && pbxHost.igrtype=="xfigr">selected="selected"</#if>>讯飞云性别年龄识别引擎</option>
												     </select>
												</div>	
											</div>
										</div>
										
										<div class="row igr" style="margin-bottom:20px; <#if pbxHost?? && pbxHost.igr == false>display: none;</#if>" >
											<div class="col-lg-8">
												<p>应用服务器请求地址</p>
												<p style="color:#888888;font-size:13px;margin-top:10px;">（性别年龄识别API）服务访问地址</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<div class="layui-input-block">
												     <input type="text" name="igrhost" value="<#if pbxHost.igrhost?? && pbxHost.igrhost!= ''>${pbxHost.igrhost!''}</#if>" autocomplete="off" class="layui-input">
												</div>	
											</div>
										</div>
										
										<div class="row igr" style="margin-bottom:20px; <#if pbxHost?? && pbxHost.igr == false>display: none;</#if>" >
											<div class="col-lg-8">
												<p>应用APPID</p>
												<p style="color:#888888;font-size:13px;margin-top:10px;">（性别年龄识别API）服务APPID</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<div class="layui-input-block">
												     <input type="text" name="igrappid" value="<#if pbxHost.igrappid?? && pbxHost.igrappid!= ''>${pbxHost.igrappid!''}</#if>" autocomplete="off" class="layui-input">
												</div>	
											</div>
										</div>
										<div class="row igr" style="margin-bottom:20px;<#if pbxHost?? && pbxHost.igr == false>display: none;</#if>" >
											<div class="col-lg-8">
												<p>应用APIKey</p>
												<p style="color:#888888;font-size:13px;margin-top:10px;">（性别年龄识别API）服务APIKEY</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<div class="layui-input-block">
												     <input type="text" name="igrapikey" value="<#if pbxHost.igrapikey?? && pbxHost.igrapikey!= ''>${pbxHost.igrapikey!''}</#if>" autocomplete="off" class="layui-input">
												</div>	
											</div>
										</div>
										
										<div class="row igr" style="margin-bottom:20px;<#if pbxHost?? && pbxHost.igr == false>display: none;</#if>" >
											<div class="col-lg-8">
												<p>应用APISec</p>
												<p style="color:#888888;font-size:13px;margin-top:10px;">（性别年龄识别API）服务APISec</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<div class="layui-input-block">
												     <input type="text" name="igrapisec" value="<#if pbxHost.igrapisec?? && pbxHost.igrapisec!= ''>${pbxHost.igrapisec!''}</#if>" autocomplete="off" class="layui-input">
												</div>	
											</div>
										</div>
									</div>
								</div>
								
								
								<div class="ukefu-webim-prop">
									<div class="ukefu-webim-tl" style="clear:both;">27、启用业务数据功能</div>
									<div class="box-item">
										<div class="row">
											<div class="col-lg-8">
												<p>启用业务数据功能，满足触发条件后保存数据</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="checkbox" title="启用" name="bussop" id="bussop" lay-filter="bussop" <#if pbxHost?? && pbxHost.bussop == true>checked="checked"</#if>>
											</div>
										</div>
									</div>
									<div class="box-item" id="bussop_tip" style="<#if !(pbxHost??) || pbxHost.bussop == false>display:none;</#if>">	
										<div class="row"  style="margin-bottom:20px;">
											<div class="col-lg-8">
												<p>a、收集以下全部数据后触发</p>
											</div>
										</div>
										<div class="row"  style="margin-bottom:20px;">
											<div class="col-lg-12">
												<#if bussOpList??>
												<#list bussOpList as op>
												<input type="checkbox" name="busslist" title="${op.name!''}" value="${op.code!''}" lay-skin="primary" <#if pbxHost.busslist?? && pbxHost.busslist?index_of(op.code) gte 0>checked="checked"</#if>>
												</#list>
												</#if>
											</div>
										</div>
										<div class="row">
											<div class="col-lg-8">
												<p>b、触发以下业务操作</p>
											</div>
										</div>
										<div class="row" style="margin-top:10px;">
											<div class="col-lg-12">
												<#if bussExecList??>
												<#list bussExecList as exec>
												<input type="checkbox" name="bussexeclist" title="${exec.name!''}" value="${exec.code!''}" lay-filter="bussexec" lay-skin="primary" <#if pbxHost.bussexeclist?? && pbxHost.bussexeclist?index_of(exec.code) gte 0>checked="checked"</#if>>
												</#list>
												</#if>
											</div>
										</div>
									</div>
								</div>
								<div class="ukefu-webim-prop">
									<div class="ukefu-webim-tl" style="clear:both;">28、启用隐藏号码功能</div>
									<div class="box-item">
										<div class="row">
											<div class="col-lg-8">
												<p>启用后，所有通过此语音网关进入的呼叫信息的客户号码都会被隐藏号码</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="checkbox" title="启用" name="hidephonenum" id="hidephonenum" lay-filter="hidephonenum" <#if pbxHost?? && pbxHost.hidephonenum == true>checked="checked"</#if>>
											</div>
										</div>
									</div>
									<div class="box-item" id="hidephonenum_tip" style="<#if !(pbxHost??) || pbxHost.hidephonenum == false>display:none;</#if>">	
										<div class="row">
											<div class="col-lg-8">
												<p>请选择号码隐藏方式</p>
												<p style="color:#888888;font-size:13px;margin-top:10px;">号码隐藏方式决定了号码最终显示在界面上的形式</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<select name="distype">
													<option value="01" <#if pbxHost?? && pbxHost.distype?? && pbxHost.distype == "01">selected="selected"</#if>>隐藏中间四位（189****0000）</option>
													<option value="02" <#if pbxHost?? && pbxHost.distype?? && pbxHost.distype == "02">selected="selected"</#if>>隐藏后四位（1890000****）</option>
													<option value="03" <#if pbxHost?? && pbxHost.distype?? && pbxHost.distype == "03">selected="selected"</#if>>隐藏前四位（****0000000）</option>
													<option value="04" <#if pbxHost?? && pbxHost.distype?? && pbxHost.distype == "04">selected="selected"</#if>>全部隐藏（***********）</option>
												</select>
											</div>
										</div>
									</div>
								</div>
								<div class="ukefu-webim-prop">
									<div class="ukefu-webim-tl" style="clear:both;">29、是否保存Sip消息</div>
									<div class="box-item">
										<div class="row">
											<div class="col-lg-8">
												<p>保存通话的事件SIP消息内容</p>
												<p style="color:#888888;font-size:13px;margin-top:10px;">包含来电振铃、接听和挂断的SIP事件</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="checkbox" title="启用" name="savesip" id="savesip" <#if pbxHost?? && pbxHost.savesip>checked="checked"</#if>>
											</div>
										</div>
									</div>
								</div>
								<div class="ukefu-webim-prop">
									<div class="ukefu-webim-tl" style="clear:both;">30、启用内网穿越</div>
									<div class="box-item">
										<div class="row">
											<div class="col-lg-8">
												<p>启用后需要配置STUN或者TURN服务器信息</p>
												<p style="color:#888888;font-size:13px;margin-top:10px;">默认语音和视频服务通信协议使用UDP</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="checkbox" title="启用" name="enableice" id="conference" lay-filter="enableice" <#if pbxHost?? && pbxHost.enableice>checked="checked"</#if>>
											</div>
										</div>
									</div>
									<div class="box-item" id="enableice_tip" style="<#if pbxHost?? && pbxHost.enableice == false>display:none;</#if>">	
										<div class="row">
											<div class="col-lg-8">
												<p>启用STUN</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="checkbox" title="启用" name="enablestun" id="enablestun"<#if pbxHost?? && pbxHost.enablestun>checked="checked"</#if>>
											</div>
										</div>
										
										<div class="row" style="padding-top:20px;">
											<div class="col-lg-8">
												<p>STUN服务器IP</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="text" name="stunserver" id="stunserver" value="${pbxHost.stunserver!''}" autocomplete="off" class="layui-input">
											</div>
										</div>
										
										<div class="row" style="padding-top:20px;">
											<div class="col-lg-8">
												<p>STUN服务器端口</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="text" name="stunserverport" id="stunserverport" value="${pbxHost.stunserverport!''}" autocomplete="off" class="layui-input">
											</div>
										</div>
										
										<div class="row" style="padding-top:20px;">
											<div class="col-lg-8">
												<p>启用TURN</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="checkbox" title="启用" name="enableturn" id="enablestun"<#if pbxHost?? && pbxHost.enableturn>checked="checked"</#if>>
											</div>
										</div>
										
										<div class="row" style="padding-top:20px;">
											<div class="col-lg-8">
												<p>TURN服务器IP</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="text" name="turnserver" id="turnserver" value="${pbxHost.turnserver!''}" autocomplete="off" class="layui-input">
											</div>
										</div>
										
										<div class="row" style="padding-top:20px;">
											<div class="col-lg-8">
												<p>TURN服务器端口</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="text" name="turnserverport" id="turnserverport" value="${pbxHost.turnserverport!''}" autocomplete="off" class="layui-input">
											</div>
										</div>
										
										<div class="row" style="padding-top:20px;">
											<div class="col-lg-8">
												<p>TURN服务器传输协议</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<select name="turntransport">
													<option value="udp">UDP</option>
													<option value="tcp" <#if pbxHost?? && pbxHost.turntransport?? && pbxHost.turntransport == "tcp">selected="selected"</#if>>TCP</option>
												</select>
											</div>
										</div>
										
										<div class="row" style="padding-top:20px;">
											<div class="col-lg-8">
												<p>TURN服务器用户名</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="text" name="turnusername" id="turnusername" value="${pbxHost.turnusername!''}" autocomplete="off" class="layui-input">
											</div>
										</div>
										
										<div class="row" style="padding-top:20px;">
											<div class="col-lg-8">
												<p>TURN服务器密码</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="text" name="turncredential" id="turncredential" value="${pbxHost.turncredential!''}" autocomplete="off" class="layui-input">
											</div>
										</div>
										
									</div>
								</div>
								<div class="ukefu-webim-prop">
									<div class="ukefu-webim-tl" style="clear:both;">31、是否开启Opensips兼容</div>
									<div class="box-item">
										<div class="row">
											<div class="col-lg-8">
												<p>开启Opensips兼容</p>
												<p style="color:#888888;font-size:13px;margin-top:10px;"></p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="checkbox" title="开启" name="opensips" id="opensips" lay-filter="opensips" value="1" <#if pbxHost?? && pbxHost.opensips>checked="checked"</#if>>
											</div>
										</div>
									</div>
									<div class="box-item opensips"  <#if pbxHost?? && pbxHost.opensips== false>style="display: none;"</#if>>
										<div class="row">
											<div class="col-lg-8">
												<p>Opensips兼容访问地址</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="text"  name="opensipsurl" id="opensipsurl" value="${pbxHost.opensipsurl!''}" class="layui-input">
											</div>
										</div>
									</div>
									<div class="box-item opensips"  <#if pbxHost?? && pbxHost.opensips== false>style="display: none;"</#if>>
										<div class="row">
											<div class="col-lg-8">
												<p>SIP请求地址（Freeswitch访问地址）</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="text"  name="opensipsport" id="opensipsport" value="${pbxHost.opensipsport!''}" class="layui-input" placeholder="Opensips兼容访问端口">
											</div>
										</div>
									</div>
									<div class="box-item opensips" <#if pbxHost?? && pbxHost.opensips== false>style="display: none;"</#if>>
										<div class="row">
											<div class="col-lg-8">
												<p>是否启用media_webrtc</p>
												<p style="color:#888888;font-size:13px;margin-top:10px;"></p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="checkbox" title="开启" name="enablemwebrtc" id="enablemwebrtc"  value="1" <#if pbxHost?? && pbxHost.enablemwebrtc>checked="checked"</#if>>
											</div>
										</div>
									</div>
									<div class="box-item opensips" <#if pbxHost?? && pbxHost.opensips== false>style="display: none;"</#if>>
										<div class="row">
											<div class="col-lg-8">
												<p>是否启用Inviteuri</p>
												<p style="color:#888888;font-size:13px;margin-top:10px;"></p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="checkbox" title="开启" name="enableinviteuri" id="enableinviteuri"  value="1" <#if pbxHost?? && pbxHost.enableinviteuri>checked="checked"</#if>>
											</div>
										</div>
									</div>
									<div class="box-item opensips" <#if pbxHost?? && pbxHost.opensips== false>style="display: none;"</#if>>
										<div class="row">
											<div class="col-lg-8">
												<p>是否启用routeuri</p>
												<p style="color:#888888;font-size:13px;margin-top:10px;"></p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="checkbox" title="开启" name="enablerouteuri" id="enablerouteuri"  value="1" <#if pbxHost?? && pbxHost.enablerouteuri>checked="checked"</#if>>
											</div>
										</div>
									</div>
									<div class="box-item opensips"  <#if pbxHost?? && pbxHost.opensips== false>style="display: none;"</#if>>
										<div class="row">
											<div class="col-lg-8">
												<p>其他参数</p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="text"  name="opensipsparam" id="opensipsparam" value="${pbxHost.opensipsparam!''}" class="layui-input" placeholder="其他参数">
											</div>
										</div>
									</div>
									<div class="box-item opensips" <#if pbxHost?? && pbxHost.opensips== false>style="display: none;"</#if>>
										<div class="row">
											<div class="col-lg-8">
												<p>是否开启域</p>
												<p style="color:#888888;font-size:13px;margin-top:10px;"></p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="checkbox" title="开启" name="opensipsdomain" id="opensipsdomain" value="1" <#if pbxHost?? && pbxHost.opensipsdomain>checked="checked"</#if>>
											</div>
										</div>
									</div>
								</div>
								<div class="ukefu-webim-prop">
									<div class="ukefu-webim-tl" style="clear:both;">32、是否启用清理呼叫中心队列功能</div>
									<div class="box-item">
										<div class="row">
											<div class="col-lg-8">
												<p>启用清理呼叫中心队列功能</p>
												<p style="color:#888888;font-size:13px;margin-top:10px;"></p>
											</div>
											<div class="col-lg-4" style="text-align:right;">
												<input type="checkbox" title="开启" name="enablecleanqueue" id="enablecleanqueue" lay-filter="enablecleanqueue" value="1" <#if pbxHost?? && pbxHost.enablecleanqueue>checked="checked"</#if>>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div class="row">
		<div class="col-lg-3"></div>
		<div class="col-lg-9">
			<div class="layui-form-item">
			  <div class="layui-input-block">
				<button class="layui-btn" lay-submit="" lay-filter="formDemo">保存</button>
				<button type="reset" class="layui-btn layui-btn-primary">重置</button>
			  </div>
			</div>
		</div>
	</div>
</form>	
<script language="javascript"> 		
	layui.use('form', function(){
		var form = layui.form;
		form.render(); //更新全部
		form.on("checkbox(webrtc)" , function(data){
			if(data.elem.checked == true){
				$('#webrtc').show();		
			}else{
				$('#webrtc').hide();
			}
		});
		form.on("checkbox(replacereg)" , function(data){
			if(data.elem.checked == true){
				$('#replacereg').show();		
			}else{
				$('#replacereg').hide();
			}
		});
		
		form.on("checkbox(acl)" , function(data){
			if(data.elem.checked == true){
				$('#acl').show();		
			}else{
				$('#acl').hide();
			}
		});
		form.on("checkbox(conference)" , function(data){
			if(data.elem.checked == true){
				$('#conference_tip').show();		
			}else{
				$('#conference_tip').hide();
			}
		});
		form.on("checkbox(orgtrans)" , function(data){
			if(data.elem.checked == true){
				$('#orgtrans_tip').show();		
			}else{
				$('#orgtrans_tip').hide();
			}
		});
		form.on("checkbox(hidephonenum)" , function(data){
			if(data.elem.checked == true){
				$('#hidephonenum_tip').show();		
			}else{
				$('#hidephonenum_tip').hide();
			}
		});
		form.verify({
			port: [
			    /^[\d]{0,5}$/
			    ,'WebRTC端口只能输入数字'
			] 
		});  
		form.on('checkbox(bussop)', function(data) {
			if(data.elem.checked == true){
				$("#bussop_tip").show();
			}else{
				$("#bussop_tip").hide();
			}
		});
		form.on("checkbox(igr)" , function(data){
			if(data.elem.checked == true){
				$('.igr').show();
			}else{
				$('.igr').hide();
			}
		});
		form.on("checkbox(enableice)" , function(data){
			if(data.elem.checked == true){
				$('#enableice_tip').show();		
			}else{
				$('#enableice_tip').hide();
			}
		});
		form.on("checkbox(opensips)" , function(data){
			if(data.elem.checked == true){
				$('.opensips').show();
			}else{
				$('.opensips').hide();
			}
		});
	});
	
</script>